import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import echarts from "echarts"; //引入echarts
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import eChartFn from "@/components/chart/index.js";
import ChartPanel from "@/components/chart/index.vue";
import { fabric } from "fabric";
import store from "./store/idnex";
Vue.use(fabric);

import * as API from "./api/api.js";
Vue.prototype.$API = API;
Vue.component(ChartPanel.name, ChartPanel);
Vue.prototype.$eChartFn = eChartFn;

Vue.use(ElementUI);
Vue.prototype.$echarts = echarts; //引入组件

Vue.config.productionTip = false;

new Vue({
	router,
	store,
	render: (h) => h(App),
}).$mount("#app");
